From: Richard M. Stallman Date: Wed, 11 Aug 1993 07:56:40 +0000 (+0000) Subject: (make_lispy_event): Clear all but 0377 in event->code. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~94502 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=2e3b94e7e987f503b34ce1e4d11ad9b7f681b7bd;p=emacs.git (make_lispy_event): Clear all but 0377 in event->code. --- diff --git a/src/keyboard.c b/src/keyboard.c index 1a7821acb37..b256e904729 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2234,7 +2234,7 @@ make_lispy_event (event) /* A simple keystroke. */ case ascii_keystroke: { - int c = XFASTINT (event->code); + int c = XFASTINT (event->code) & 0377; /* Turn ASCII characters into control characters when proper. */ if (event->modifiers & ctrl_modifier)